package com.aizuda.boot.modules.business.permission.mapper;

import com.aizuda.boot.modules.business.permission.domain.entity.MenuRoleRelEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author duanyao
 * @date 2022/12/05 14:07
 * @description: 角色
 */
@Repository
public interface MenuRoleRelMapper extends BaseMapper<MenuRoleRelEntity> {

    /**
     * 根据角色id或菜单id删除菜单角色关联表数据
     *
     * @param roleIds 角色ids
     * @param classification 分类PC/H5/小程序等
     * @param menuIds 菜单ids
     */
    int deleteByRoleIds(@Param("roleIds") List<Long> roleIds, @Param("menuIds") List<Long> menuIds,@Param("classification")  String classification);
}
